Learn R Programming

Directional (version 4.7)

Transform unit vectors to angular data: Transform unit vectors to angular data

Description

Transform unit vectors to angular data.

Usage

etoa(x)

Arguments

x

A numerical matrix with directional data, i.e. unit verctors.

Value

A list including:

mu

A matrix with angles. The number of columns is one less than that of the original matrix.

Details

from the Euclidean coordinates the data are mapped to angles, expressed in rads.

References

https://en.wikipedia.org/wiki/N-sphere#Spherical_coordinates

See Also

vmnb.pred, weibull.nb

Examples

Run this code
# NOT RUN {
x <- rvmf(10, rnorm(3), 5)
y <- etoa(x)
# }

Run the code above in your browser using DataLab